/* 导出页面需要的信息 */
export const Page = {
  /* 表格展示部分 */
  tableHeader: [
    {
      title: "订单号",
      value: "order_id",
      width: "150px",
    },
    {
      title: "收货信息",
      value: "address",
      width: "300px",
    },
    {
      title: "SKU",
      value: "sku",
      width: "150px",
    },
    {
      title: "产品",
      value: "sku_name",
      width: "220px",
    },
    {
      title: "订单台数",
      value: "sku_num",
      width: "120px",
    },
    {
      title: "下单时间",
      value: "order_time",
      width: "150px",
    },
    {
      title: "发货时间",
      value: "ship_time",
      width: "150px",
    },
    {
      title: "仓库类型",
      value: "ware_house_name",
      width: "140px",
    },
    {
      title: "换货发货数量",
      value: "exchange_order_num",
      width: "150px",
    },
    {
      title: "换货快递",
      value: "exchange_ship_name_str",
      width: "150px",
    },
    {
      title: "换货快递单号",
      value: "exchange_ship_no",
      width: "120px",
    },
    {
      title: "换货签收时间",
      value: "exchange_ship_time",
      width: "180px",
    },
    {
      title: "库存单价",
      value: "stock_in_unit_price",
      width: "150px",
    },
    {
      title: "换货设备总价",
      value: "exchangeSkuTotalPrice",
      width: "180px",
    },
    {
      title: "换货运费",
      value: "exchange_ship_price",
      width: "105px",
    },
    {
      title: "换货费用合计",
      value: "exchangeTotalPrice",
      width: "150px",
    },
    {
      title: "备注说明",
      value: "remark",
      width: "180px",
    },
  ],
  /* 弹窗表单 */
  Dialog: {
    /* 新增换货流转单弹窗 */
    CreateDialog: {
      DialogTtile: "新增换货流转单", // 弹窗标题
      DialogConfirmText: "确认新增", // 弹窗确认按钮文字
      DialogForm: {
        Return_order_id: "",
      },
      rules: {
        Return_order_id: [
          { required: true, message: "请选择退款退货订单", trigger: "blur" },
        ],
      },
      rulesForm: 'CreateExchangeGoods',
      DialogFormType: [
        {
          name: "订单号",
          value: "Return_order_id",
          type: "No",
          GetApi: "GetReturnAndAfsList",
          placeholder: "请选择退款退货订单",
          ShowValue: '换货选择订单',
          Search: true,
          required: true,
          tableHeader: [
            {
              title: "订单id",
              value: "orderId",
              width: "140px",
              IsUpdata: true,
            },
            {
              title: "收货人 ",
              value: "buyer_name",
              width: "140px",
            },
            {
              title: "产品名称",
              value: "sku_name",
              width: "300px",
            },
          ],
        },
      ],
    },
    /* 修改弹窗的信息 */
    UpdataDialog: {
      DialogTtile: "修改换货流转单信息", // 弹窗标题
      DialogConfirmText: "确认修改", // 弹窗确认按钮文字
      DialogForm: {
        order_id: "",
        ship_time: "",
        exchange_ship_name: "",
        exchange_ship_no: "",
        exchange_ship_time: "",
        exchange_ship_price: "",
        remark: "",
      },
      rules: {
        exchange_ship_no: [
          { required: true, message: "请填写换货快递单号", trigger: "blur" },
        ],
      },
      rulesForm: 'UpdataExchangeGoods',
      DialogFormType: [
        {
          name: "订单号",
          value: "order_id",
          type: "text",
          GetApi: "GetQwOrder",
        },
        {
          name: "发货时间",
          value: "ship_time",
          type: "time",
          placeholder: "请选择发货时间",
        },
        {
          name: "换货快递",
          value: "exchange_ship_name",
          type: "select",
          options: [],
          placeholder: "请填写换货快递",
        },
        {
          name: "换货快递单号",
          value: "exchange_ship_no",
          type: "input",
          placeholder: "请填写换货快递单号",
          required: true,
        },
        {
          name: "换货签收时间",
          value: "exchange_ship_time",
          type: "time",
          placeholder: "请填写换货签收时间",
        },
        {
          name: "换货运费",
          value: "exchange_ship_price",
          type: "input",
          placeholder: "请填写换货运费",
        },
        {
          name: "备注说明",
          value: "remark",
          type: "input",
          placeholder: "请填写备注",
        },
      ],
    },
    /* 发货弹窗的信息 */
    SendDialog: {
      DialogTtile: "换货流转单发货", // 弹窗标题
      DialogConfirmText: "确认发货", // 弹窗确认按钮文字
      FormLabelWidth: "120px",
      DialogForm: {
        order_id: "",
        inventory: "",
      },
      rules: {
        inventory: [{ required: true, message: "请选择库存", trigger: "blur" }],
      },
      rulesForm: 'SendExchangeGoods',
      DialogFormType: [
        {
          name: "订单号",
          value: "order_id",
          type: "text",
        },
        {
          name: "库存",
          value: "inventory",
          ShowValue: "换货选择库存",
          type: "No",
          Search:true,
          GetApi: "GetShipStockListBySku",
          placeholder: "选择库存",
          required: true,
          tableHeader: [
            {
              title: "供应商名称",
              value: "supplier_name",
              IsUpdata: true,
            },
            {
              title: "仓库类型",
              value: "warehouse_name",
            },
            {
              title: "SKU",
              value: "sku",
            },
            {
              title: "商品名称",
              value: "sku_name",
            },
            {
              title: "正品库存",
              value: "quality_stock",
            },

          ],
        },
      ],
    },
  },
};
